package com.yl.pattern.creatormodel.factory.abstract_factory;

/**
 * @Author 小羊
 * @Date 29/10/2024下午 9:18
 * @ClassName Client
 * @Description 测试类
 */
public class Client {
    public static void main(String[] args) {
        //创建意大利风味的工厂对象
        ItalyDessertFactory factory = new ItalyDessertFactory();
        //获取咖啡和甜品
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();
        System.out.println(coffee.getName());
        dessert.show();
    }
}
